﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    @(Html.Telerik().StyleSheetRegistrar()
                      .DefaultGroup(group => group
                          .Add("telerik.common.css")
                          .Add("telerik.windows7.css")
                          .Combined(true)
                          .Compress(true))
    )
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script>
        var loadingImageUrl = "@Url.Content("~/Content/ajax-loader.gif")"
    </script>
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("Application name", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                </ul>
            </div>
        </div>
    </div>
   

                <div class="container body-content">
                    <div class="row">
                        <div class="col-md-3">
                            <ul id="menu" class="nav nav-pills nav-stacked">
                                <li class="active">@Html.ActionLink("File", "Index", "File")</li>
                                <li>@Html.ActionLink("Institution","Index","Institution")</li>
                                <li>@Html.ActionLink("FileType", "Index", "FileType")</li>
                            </ul>
                        </div>
                        <div id="main" class="col-md-9">
                            @RenderBody()
                        </div>
                    </div>
                    
                    <hr />
                    <footer>
                        <p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
                    </footer>
                </div>

    
    
    

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/common")
    @RenderSection("scripts", required: false)
<script>
    $(function () {
        $("#menu li").each(function (i) {
            if ($("a", this).attr("href") === window.location.pathname) {
                $("#menu li").removeClass("active");
                $(this).addClass("active");
                return false;
            }
        });
        $("#menu a").click(function (e) {
            e.preventDefault();
            //$("#main").load($(this).attr("href"));
            $("#menu a").parent().removeClass("active");
            $(this).parent().addClass("active");
            AjaxWithBlock($("#main"), $(this).attr("href"), null,
                function (data) {
                     $("#main").html(data);
            });
        });
    });
</script>
</body>
</html>
@(Html.Telerik().ScriptRegistrar().Globalization(true))